from redis import StrictRedis

class Config:
    DEBUG = True
    SECRET_KEY = 'fJX5tKWE2NwEY/ra3erjLOS+fdfDe5DacIJbmx1LbnU='
    SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@localhost/test33'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SESSION_TYPE = 'redis'
    SESSION_USE_SIGNER = True
    PERMANENT_SESSION_LIFETIME = 86400
    REDIS_HOST = '127.0.0.1'
    REDIS_PORT = 6379
    REDIS_SESSION = StrictRedis(host=REDIS_HOST, port=REDIS_PORT)


class developmentConfig(Config):
    DEBUG = True

class productionConfig(Config):
    DEBUG = False

config = {
    'develop': developmentConfig,
    'product': productionConfig
}